FROM redis:7.2-alpine
LABEL author="slpcode"
LABEL email="1370808424@qq.com"

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories \
    && apk add --no-cache tzdata \
    && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && apk del tzdata
ENV TZ Asia/Shanghai

RUN apk add supervisor

# 定义容器启动时运行的命令
#COPY ./redis.conf /usr/local/etc/redis/redis.conf
#CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
#CMD [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
